package com.johnny.bootlaunch.controller;

import com.johnny.bootlaunch.entity.LombokPoJo;
import com.johnny.bootlaunch.model.AjaxResponse;
import com.johnny.bootlaunch.service.LombokService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LombokController {

    @Autowired
    private LombokService lombokService;


    @ApiOperation(value = "lombok", notes = "表达式", tags = "Article",httpMethod = "GET")
    @ApiResponses({
            @ApiResponse(code=200,message="成功",response=AjaxResponse.class),
            @ApiResponse(code=400,message="用户输入错误",response=AjaxResponse.class),
            @ApiResponse(code=500,message="系统内部错误",response=AjaxResponse.class)
    })
    @RequestMapping(value = "/lombok/info")
    public  AjaxResponse getLombokInfo() {
        LombokPoJo lombokPoJo = lombokService.getLombokInfo();
        return  AjaxResponse.success(lombokPoJo); 
    }

}
